Posted By

BebenKoben on 03/31/11


Tagged

javascript


Versions (?)

Change address link with http://www.


 / Published in: JavaScript
 

  1. /* Put your below <head> */
  2.  
  3. <script type="text/javascript">
  4. function go(loc, NewWind) {
  5. if (NewWind != "new") {
  6. self.location = "http://www." + loc
  7. } else {
  8. loc = "http://www." + loc
  9. window.open(loc, "", "width=500,height=400,left=350,top=200,toolbar,status,resizable,scrollbars,location")
  10. }
  11. }
  12. </script>
  13.  
  14. /* This HTML */
  15.  
  16. This is simple write:
  17.  
  18. <a href="javascript:go('beben-koben.blogspot.com','new')" title="Prodiggy of Head">My Blog</a>
  19.  
  20. This is complete write:
  21.  
  22. <a href="javascript:go('beben-koben.blogspot.com/','new')" onmouseover="window.status='http://beben-koben.blogspot.com/';return true;" onmouseout="window.status=' ';return true;">Prodiggy of Head</a>
  23.  
  24. This is same windows:
  25.  
  26. <a href="javascript:go('beben-koben.blogspot.com')" title="Same Windows">Same Windows</a>

Report this snippet  

You need to login to post a comment.