Web Analytics Made Easy -
StatCounter simple scripting - CodingForum

Announcement

Collapse
No announcement yet.

simple scripting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • simple scripting

    its a quick and studid one:

    but i want to place the links from my site in a javascript page. but
    i have ended up doing like this: sloppy

    function link1() {
    window.open('home.htm');
    }
    function link2() {
    window.open('about.htm');
    }

    could someone please help and show me a simple way to set it up so i can set the pages as varables.. and just say use var 2 ect ect ect

    thank you chris
    <marquee>thanks</marquee>

  • #2
    function popup(url) {
    window.open(url);
    }

    <A HREF="whatever.htm" onClick="popup('whatever.htm'); return false;">click click</A>
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

    Comment

    Working...
    X