Solved

Text in a new window

Posted on 1998-08-10
3
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 50 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

Suggested Solutions

Title # Comments Views Activity
Copying table data to one another 15 37
Making Table Thru ASP Response.write 5 19
Text color and background in a text box. 2 25
output in HTML in Powershell 5 23
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 …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

749 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