• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Offsite link opens new window

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy all,
I'm greener than green on Java, but hope to change that SOON.
I have been looking for code to make another window open when an offsite link is clicked, not finding any and having limited luck with what I do find on varibles I don't know what to do with...so I've now decided to learn Java so I can do the writting of it myself....weeeeeeeeee. But in the mean time...I still need the code! ...ahhhhhh can ANYONE help me with this, I haven't a CLUE where to start, except the beginning.
Thanks,
From A Green Java Bean :roll:
Leigh
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So do you want to do this from html, an applet, or from an application, or a java Server Page.
What HAVE you been working with?
 
L Leigh Dee
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh sorry....I did neglect to put that didn't I??....I have been doing HTML, I want to learn JAVA. Hence me being here!
I not sure WHAT would be best the HTML or an applet. I've only been doing even the HTML since Feb. so I'm not exactly "ripe" in that area either!!
Did I mention GREEN??....laffin

Later
Leigh :roll:
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Leigh
You might be confused. If you're dealing with a plain HTML page and just want to open a new window with the page that anlink points to then you're probably looking for javascript instead of plain java.
If, as Cindy mentioned, you're working with applets then yes, Java is what you want.
 
L Leigh Dee
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Dave,
But I don't think "MIGHT be confused" is quite appropreate, where as TOTALLY or COMPLETELY confused would fit me to a tee at any given time of the day!
Applets are something I WANT to be able to eventually do, but FOR NOW if anyone has even some javaSCRIPT they could toss my way that would be helpful.
I eventually want to do full JAVA programs etc...but for the "offsite link opens new window" it could be ANYTHING ...piglatin if it would just work!.....laffin
Anyay thanks for suffering me folks!
bear in mind GREEN......
Leigh :roll:
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might not need javascript. Try this: <A href="[link to open]" target="_top">[link name] </a>
option "_blank" should be able to open new browser window for you.
[ June 12, 2002: Message edited by: Irene Loos ]
[ June 12, 2002: Message edited by: Irene Loos ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or you can do it another way by looking at my pop up window generator which does all of the coding for you
http://www10.brinkster.com/A1ien51/scripts/PopUpWinGenV3.htm
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Irene & Cindy
You guys can help me with this simple question
<a href="x.html">click here </a>
how to avoid the underline which appears with the text 'click here'
please help...
thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic