www.webdeveloper.com
Results 1 to 2 of 2

Thread: js function to continue to url after confirm

  1. #1
    Join Date
    Sep 2009
    Posts
    7

    js function to continue to url after confirm

    I'm working on a bank website that needs disclaimers on their external links. I've searched for a tutorial or a script I could understand but need additional help if anyone is willing..

    Here's my page with external links:
    http://designphilanthropy.org/services/links/

    Here's the js I used from the previous bank design (I don't see any code here that will do what I need):
    Code:
    <script language="javascript">
    	<!-- Hide
    	window.resizeTo(440, 440);
    	
    	function go() {
    		var width = screen.width;
    		var height = screen.height;
    		if(width<650) {
    			width = 600;
    			height = 400;
    		} else {
    			width = width - 200;
    			height = height - 100;
    		}
    		window.resizeTo(width, height);
            location.href="";
    	}
    	// end Hide -->
    
    </script>
    And here's the code on the "yes" button:
    Code:
    <input type="button" VALUE="YES" onclick="javascript:go();">

    The link opens the disclaimer and populates the url in the browser, but I don't know how to write the js for it to continue to the destination after clicking "yes"

    Any help would be greatly appreciated...

  2. #2
    Join Date
    Sep 2009
    Posts
    7
    I'm still looking for an answer to this... if anyone knows?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles