Borgtex
04-01-2003, 02:43 PM
Arg! It must be very simple, but...
why that doesn't works (with self.location):
javascript:fram='<frameset rows="80,*" border="0" framespacing="0"><frame src="about:blank" name="topFrame" scrolling="NO" noresize ><frame src="'+self.location+'" name="mainFrame" onload="alert(11)"></frameset>';document.write(fram)
and that does (with an specific url):
javascript:fram='<frameset rows="80,*" border="0" framespacing="0"><frame src="about:blank" name="topFrame" scrolling="NO" noresize ><frame src="'+'http://www.google.com'+'" name="mainFrame" onload="alert(11)"></frameset>';document.write(fram)
it's for a bookmarklet, so it must be executed from the address bar rather than from a page
why that doesn't works (with self.location):
javascript:fram='<frameset rows="80,*" border="0" framespacing="0"><frame src="about:blank" name="topFrame" scrolling="NO" noresize ><frame src="'+self.location+'" name="mainFrame" onload="alert(11)"></frameset>';document.write(fram)
and that does (with an specific url):
javascript:fram='<frameset rows="80,*" border="0" framespacing="0"><frame src="about:blank" name="topFrame" scrolling="NO" noresize ><frame src="'+'http://www.google.com'+'" name="mainFrame" onload="alert(11)"></frameset>';document.write(fram)
it's for a bookmarklet, so it must be executed from the address bar rather than from a page