Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Link inside textbox?

    Hi!

    Could anyone tell me if it is possible to put a link, or an image, inside a textbox?

    Thanx!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Montreal, Canada
    Posts
    644
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can't do either of them, but you can add a background to the textbox:

    <input type="text" size="20" style="background-image: url('file.jpg)">

    and you can have it so if someone clicks on the textbox it goes to a new page:

    <input type="text" size="20" onclick="location.replace('http://www.google.com')">

    Or you could forget the whole textbox idea and use iframes:

    <iframe src="internal_page.htm" width="100" height="20"><iframe>

    Then on the ointernal page you can have anything after all it's just another regular html document.

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks a lot!


  •  

    Posting Permissions

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