Jump to content
Sign in to follow this  
gaby

Script Penru Afisarea Sursei Unei Pagina Web

Recommended Posts

Acest script afiseaza in pagina un link care odata activat (printr-un click de mouse) genereaza un fiser text cu codul sursa al paginii:

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>PC Troubleshooting Afisare Cod Sursa Pagina Web</title>

<script language="Javascript">
<!--

function viewsource()
{
window.location="view-source:"+window.location;
}
//-->
</script>
</head>

<body>
<a href="#" onclick="viewsource();">Vezi codul sursa!</a>
</body>

</html>[/code]

:pct2:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×