1. Write to the registry:
Registry File: myreg. Reg
Content:
Regedit4
[HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ menuext]
[HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ menuext \ add to my network Abstract]
@ = "Http: // localhost/paper/rightclick. aspx"
Ii. Delete the above operations:
File Name: removemylreg. Reg
Content:
Regedit4
[-HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ menuext \ add to my network Abstract]
3. html view on the rightclick. ASPX pageCode(The VB code is empty)
<Script language = "JavaScript">
If (external. menuarguments ){
VaR parentwin = External. menuarguments;
If (parentwin.doc ument. Selection ){
VaR sel = parentwin.doc ument. selection. createRange (). text;
}
If (! Sel ){
VaR sel = '';
}
VaR url = parentwin. Location. href;
VaR Title = parentwin.doc ument. title;
If (parentwin. event. srcelement. tagname = ""){
Url = parentwin. event. srcelement. getattribute ("href ");
Title = parentwin. event. srcelement. innertext;
}
Void (window. Open ('HTTP: // localhost/paper/index. aspx? T = '+ escape (title) +' & U = '+ escape (URL) +' & C = '+ escape (SEL),' _ blank ', 'rollbars = No, width = 475, Height = 575, Left = 75, Top = 20, status = No, resizable = yes '))
} Else {
History. Go (-1 );
}
</SCRIPT>
Use request. Receiving parameters T, U, and C in index. aspx and add them to the database.
For example, textbox1.text = request. querystring ("T ")
Textbox2.text = request. querystring ("U ")
Textbox3.text = request. querystring ("C ")
Perform other data processing.
Note: For HTML in index. aspx, the page must be added with the validaterequest = false attribute.