Thread: printing in URL

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    6
    Rep Power
    0
    I have no experience in javascript...What I'm doing is using PHP and I was wondering if there was a way you can make javascript print out a word in a url? such as:
    http://www.domain.com/page.php3?anim...rd&JAVASCRIPT= <javascript here to print out something>

    Then I would just check to see if the variable $javascript is set and if it is, the user has javascript on. Then I can make it so that if javascript is not enabled, I can offer an alternative code for the pop-ups.

    So can javascript print something out?
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    if you document.write() one of the parameters for the url its very existance will imply the javasript existance.

    but if (navigator.javaEnabled()) is much easier?

    Simon

    ------------------
    Simon Wheeler
    FirePages -DHTML/PHP/MySQL
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    how do you use navigator.javaenabled() ?

Similar Threads

  1. Printing properties (page header, url etc)
    By DrStein in forum HTML Programming
    Replies: 8
    Last Post: November 23rd, 2004, 04:10 PM
  2. Printing without the URL
    By superchoy1 in forum HTML Programming
    Replies: 0
    Last Post: September 16th, 2003, 07:00 AM
  3. Need help: redirect to page based on text in URL
    By JPElectron in forum HTML Programming
    Replies: 2
    Last Post: July 19th, 2003, 12:44 AM
  4. PATH_INFO URL - Search Engine Friendly
    By Coopercentral2 in forum PHP Development
    Replies: 2
    Last Post: April 19th, 2003, 11:44 PM
  5. Using PHP to do url redirection
    By sweeting in forum PHP Development
    Replies: 2
    Last Post: August 14th, 2002, 11:04 AM

IMN logo majestic logo threadwatch logo seochat tools logo