SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Threaded View

  1. #1
    SitePoint Zealot
    Join Date
    Dec 2002
    Location
    Asker, Norway
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    onclick & ondblclick

    I'm trying to use the onclick & ondblclick events to lunch to different pages, but when I dblclick both pages appeares. And i'm very not-good with javascript.


    Code:
    	function klikk()
    	{
    		window.open("http://www.vg.no", target="_blank");
    		event.returnValue=false;
    	}
    	
    	function dblklikk()
    	{
    		window.open("http://www.dagbladet.no", target="_blank");
    		event.returnValue=false;
    	}
    
    <body onClick="klikk()" ondblClick="dblklikk()">
    Last edited by claus erik; Jan 12, 2003 at 12:33.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •