[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Text in a new window

Posted on 1998-08-10
3
Medium Priority
?
175 Views
Last Modified: 2010-04-09
I need to access txt files and see them on the screen. I  currently link to the txt file and it shows up as a full
screen. In order to return, you must hit the Back button.  How do I call the fill up to be seen in a new window
so that I can still view info on the main screen??
0
Comment
Question by:architec
3 Comments
 
LVL 2

Expert Comment

by:Serg
ID: 1845143
Sounds more like JavaScript Question...

if you want to have it as a link then you should use something like this...[open.window]
which will link to txt and open a new window, you can also modify the defoult size for the new window
But once again this is much easier done in JavaScript....if i understand you right ofcourse
perhaps you should re-post this to that section.
0
 
LVL 4

Accepted Solution

by:
mitek earned 200 total points
ID: 1845144
I already answered a similar question a while ago, so I'll just reiterate what has been said ...  

<HEADER>
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWin(URL,win_name) {
  help_win=window.open(URL,win_name,"width=450,height=400,scrollbars");
  help_win.focus();
}
// -->
</SCRIPT>

</HEADER>

<BODY>
 

<A HREF="javascript:openWin('fname_win1.txt','win1');">Click to open a new window</A>

 

<A HREF="javascript:openWin('fname_win2.txt','win2');">Click to open another window</A>

 
</BODY>

An even simpler way would be just to use TARGET attribute, like

<A HREF="text.txt" TARGET="win1">Click to open new window</A>

But the first way is much better, since it gives you control over attributes of the window, like whether it has scrollbars, allows you to specify the dimensions, etc.

0
 
LVL 2

Expert Comment

by:SirCaleb
ID: 1845145
Even easier than that, why not do this...

<a href="textfile.txt" target="xyz">Text Document</a>

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question