Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML frame tag URL of browser not changing

How do I change the URL of the browser with a website using a structure of <frame>. I know the whole point of <frame> is to use embedded frames so that you can't tell where the site is going. In particular, when you click a link, the frame changes, but the URL at the top of the browser says the same thing.

I'm trying to make it so that the browser CHANGES the URL, so the real URL of the main inner frame is shown at all times. How can I do this?

like image 657
CodeGuy Avatar asked Dec 14 '25 14:12

CodeGuy


1 Answers

You can't; best bet is to change the fragment with JavaScript, e.g. window.location.hash = 'whatever'.

You will need to use JavaScript to then detect this and modify the frame's src attribute.

like image 65
alex Avatar answered Dec 16 '25 12:12

alex