Css 4
Css 4
Session cookie:-
These cookies are temporary. Means these cookies stores the
value/data for some amount of time or activity.
It saves the data till we are active on the web page after that it will
delete the data.
Persistant Cookie:-
These cookies are permanent. Means these cookies stores the data
until its expiry date will come.
There is no such method to delete the persistant cookies.
If we have to delete the cookies then the only way is to set the expiry
date to it.
To create a cookie we use the following syntax:-
document.cookie=”username:abc”;
we can also specify the variable name instead of directly writing the
name.
operations of cookies:-
create
read
delete
4.2
programs of cookie operation..
4.3
Program on window..
Open and close
Open window
Winobj=window.open(“url”,content,styles);
Can change the content of window using window object
Winobj.document.write(“<h2>hello world</h2>”);
It will print hello world in new window…
We can use any html tag inside the window using the object
We can open multiple tabs using for loop at one time..
Onclick=”setTimeout(fun,time)”
Onclick=”setTimeout(fun,5000)”
It will do the execution after 5 seconds..
setInterval:- it will execute the program every time after the interval time..
onclick=”setInterval(fun(),5000)”
it will execute the fun() function after every 5 seconds…
Chapter no. 5
Regular expressions,Rollover and
Frames