Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I need JavaScript to open below html page on click event, if some one click on text then that html page should open, I need JavaScript code using document.getElementById()

<img border="0" src="http://buildmydownlines.com/images/468x60getpaid.gif" align="center" width="468" height="60" alt="Get Paid To Join Websites" />
Posted
Updated 31-Mar-15 19:59pm
v3
Comments
Afzaal Ahmad Zeeshan 1-Apr-15 1:57am    
Use, window.open(url) to open a new window, where url is the URL for your website's web page.

You need to use:

If you have your pages inside "frame" then "Window.open('Test.aspx','_self')"

will be redirected inside same frame. So by using

"Window.open('Test.aspx','_top')"
we can load the page as new request.
 
Share this answer
 
 
Share this answer
 
Comments
Member 11567053 1-Apr-15 2:19am    
these all working for urls only, not to my banner image(html).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900