That looks like it should work, perhaps you copied it incorrectly. Though, to be on the safe side, one should use the href property:
Code:
parent.iframe1.location.href = parent.iframe1.location.href.split('#')[0] + '#blabla';
parent.iframe1.location.href = parent.iframe1.location.href.split('#')[0] + '#bleble';
But what's wrong with:
Code:
parent.iframe1.location.href = 'iframe1.html#blabla';
parent.iframe1.location.href = 'iframe1.html#bleble';
??
If you want more help:
Please post a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks