Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
44
rated 0 times [  51] [ 7]  / answers: 1 / hits: 56977  / 10 Years ago, thu, april 10, 2014, 12:00:00

I am using below code to open a popup window in my page:



window.open(myPopupWindow.html, _blank, height=400, width=550, status=yes, toolbar=no, menubar=no, location=no, addressbar=no, top=200, left=300); 


Although the url is disabled but even then it can be seen and copied. I have already set addressbar to no. How can I hide url in popup window?


More From » html

 Answers
30

Are you just trying to mask the address, to make it look nicer or hide the fact that you're linking to to another website, or is it that you don't want people to know they can access that page without using your popup?



If it's the former, then what you could do is make the page you open in window.open an iframe, and point the iframe to your actual page. They user could still access the target page, but only via your nicer looking url.



The other option is to use something like a colorbox with an iframe instead of window.open, which will mask the address. Have a look at the Outside Webpage (iframe) example on this page.



Of course whichever option you choose, someone smart can still track down the target url via the source code and go there directly.


[#71529] Tuesday, April 8, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anniejulietteb

Total Points: 740
Total Questions: 125
Total Answers: 97

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
;